Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@babel/plugin-proposal-export-namespace-from
Advanced tools
The @babel/plugin-proposal-export-namespace-from package allows developers to use the export * as syntax in their JavaScript or TypeScript code, which is part of the ECMAScript 2020 (ES2020) specification. This syntax enables a module to re-export all exports of another module, creating a single named export that encapsulates all of them.
Re-exporting all named exports from a module
This feature allows a module to re-export all named exports from another module under a single namespace. In the code sample, all exports from './utils' are available as properties of the 'utils' object.
export * as utils from './utils';
This package allows Babel to parse the export * as syntax but does not transform it. It is useful when you want to enable the syntax but are using a bundler or environment that already supports it natively.
This package is a Babel plugin that adds support for the export-from extension syntax, which includes export * as. It is similar to @babel/plugin-proposal-export-namespace-from but is not scoped under the official Babel namespace and may not be as up-to-date with Babel's plugin API.
Compile export namespace to ES2015
See our website @babel/plugin-proposal-export-namespace-from for more information.
Using npm:
npm install --save-dev @babel/plugin-proposal-export-namespace-from
or using yarn:
yarn add @babel/plugin-proposal-export-namespace-from --dev
v7.18.9 (2022-07-18)
babel-plugin-transform-modules-systemjs
, babel-types
babel-generator
returnType
with comments generates incorrect code (@liuxingbaoyu)babel-cli
babel-cli
is ready. (@liuxingbaoyu)babel-core
, babel-helper-remap-async-to-generator
, babel-helpers
, babel-parser
, babel-plugin-transform-block-scoping
, babel-preset-env
babel-helper-create-class-features-plugin
, babel-helper-member-expression-to-functions
, babel-helper-remap-async-to-generator
, babel-helper-replace-supers
, babel-helper-wrap-function
, babel-helpers
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-proposal-decorators
, babel-plugin-proposal-object-rest-spread
, babel-plugin-proposal-optional-chaining
, babel-plugin-transform-block-scoping
, babel-plugin-transform-classes
, babel-traverse
, babel-types
babel-generator
FAQs
Compile export namespace to ES2015
The npm package @babel/plugin-proposal-export-namespace-from receives a total of 4,821,594 weekly downloads. As such, @babel/plugin-proposal-export-namespace-from popularity was classified as popular.
We found that @babel/plugin-proposal-export-namespace-from demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.